# NameError
# prnt('hello world') # 函数名拼写错误
print('hello world')

a = '111'
print(a)
# print(aaa) # 变量名拼写错误
# print(b) # 使用一个不存在的变量

# SyntaxError
if 'he' == 'hi': # 冒号未写，SyntaxError
    print('hello') # 缩进不对 IndentationError

# TypeError
# print(3 + '2')

tp = (1,3,5)
# tp[2] = 4 # TypeError
# print(tp)

# tp.append(2) # AttributeError
# print(tp)
# print(tp[4]) # IndexError

d ={1:2,3:4}
# print(d[2]) # KeyError
